package com.eksboot.proxy.dynamic3;

/**
 * Interceptor
 *
 * @author: chenfenghai
 * @version: 1.0
 * @date: 2021-05-25 15:13
 */
public interface Interceptor {
    /**
     * 具体拦截处理
     * @param invocation
     * @return
     * @throws Exception
     */
    Object intercept(Invocation invocation) throws Exception;

    /**
     *  插入目标类
     * @param target
     * @return
     */
    Object plugin(Object target);
}
